{"version":3,"sources":["selector.js"],"names":["BX","namespace","UI","SelectorMenuItem","this","_parent","_settings","_emitter","prototype","initialize","settings","Event","EventEmitter","setEventNamespace","listener","prop","getFunction","getObject","addOnSelectListener","getValue","getString","getText","text","type","isNotEmptyString","isEnabled","getBoolean","isDefault","createMenuItem","encode","delimiter","util","htmlspecialchars","onclick","emit","item","bind","className","subscribe","removeOnSelectListener","unsubscribe","create","self","SelectorMenu","_id","_items","_encodeItems","_popup","_isOpened","_itemSelectHandler","delegate","onItemSelect","id","Math","random","toString","substring","getSetting","itemData","isArray","i","length","push","getId","name","defaultval","hasOwnProperty","getItems","setupItems","data","isOpened","open","anchor","menuItems","PopupMenu","show","closeByEsc","offsetTop","offsetLeft","events","onPopupShow","onPopupClose","onPopupDestroy","currentItem","close","popupWindow","event","menu","destroy","Data"],"mappings":"AAAAA,GAAGC,UAAU,SAEb,UAAUD,GAAGE,GAAmB,mBAAM,YACtC,CACCF,GAAGE,GAAGC,iBAAmB,WAExBC,KAAKC,QAAU,KACfD,KAAKE,aACLF,KAAKG,SAAW,MAEjBP,GAAGE,GAAGC,iBAAiBK,WAEtBC,WAAY,SAASC,GAEpBN,KAAKE,UAAYI,EACjBN,KAAKG,SAAW,IAAIP,GAAGW,MAAMC,aAC7BR,KAAKG,SAASM,kBAAkB,0BAEhC,IAAIC,EAAWd,GAAGe,KAAKC,YAAYhB,GAAGe,KAAKE,UAAUb,KAAKE,UAAW,aAAe,SAAU,MAC9F,GAAGQ,EACH,CACCV,KAAKc,oBAAoBJ,KAG3BK,SAAU,WAET,OAAOnB,GAAGe,KAAKK,UAAUhB,KAAKE,UAAW,QAAS,KAEnDe,QAAS,WAER,IAAIC,EAAOtB,GAAGe,KAAKK,UAAUhB,KAAKE,UAAW,OAAQ,IACrD,OAAON,GAAGuB,KAAKC,iBAAiBF,GAAQA,EAAOlB,KAAKe,YAErDM,UAAW,WAEV,OAAOzB,GAAGe,KAAKW,WAAWtB,KAAKE,UAAW,UAAW,OAEtDq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